Parallel Algorithms for Computing Prüfer-Like Codes for Labeled Trees

نویسندگان

  • Narsingh Deo
  • Paulius Micikevicius
چکیده

In 1918 Prüfer showed a one-to-one correspondence between labeled trees on n nodes and sequences of (n 2) node labels, obtained by iteratively deleting the leaf with the smallest label in the current tree and appending the label of the adjacent node to the code. In 1953 Neville proposed two additional methods for encoding a labeled tree of order n into a sequence of (n 2) labels. Recently, yet another tree-code was proposed by the authors. As a generalization, we define a tree-code to be Prüfer-like, if it is a sequence of (n 2) node labels computed by iteratively deleting the leaves of the tree in some deterministic order. The four aforementioned Prüfer-like codes can be computed sequentially in O(n) time. Two EREW PRAM O(log n)-time algorithms for computing the Prüfer code have been proposed in the literature. Neither of these algorithms is workoptimal, since they require O(n) processors. In this paper we propose three different EREW PRAM O(log n)-time algorithms for computing the tree-codes proposed by Neville, and by the authors. The algorithm for Neville's third encoding requires O(n / log n) processors and therefore is work-optimal. To the best of our knowledge, no other work-optimal algorithm for computing Prüfer-like tree-code has been published. Index Terms -Prüfer codes, tree-codes, labeled trees, parallel algorithms. • The authors are with the School of Electrical Engineering and Computer Science, University of Central Florida, Orlando, FL 32816-2362. Email: {deo, pmicikev}@cs.ucf.edu. • This research was supported in part by Honeywell Space Systems.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Prüfer-Like Codes for Labeled Trees

In 1918 Prüfer showed a one-to-one correspondence between n-node labeled trees and (n – 2)-tuples of node labels. The proof employed a tree code, computed by iteratively deleting the leaf with the smallest label and recording its neighbor. Since then other tree codes have been proposed, based on different node deletion sequences. These codes have different properties, interesting and useful in ...

متن کامل

Unified parallel encoding and decoding algorithms for Dandelion-like codes

The Dandelion-like codes are eight bijections between labeled trees and strings of node labels. The literature contains optimal sequential algorithms for these bijections, but no parallel algorithms have been reported. In this paper the first parallel encoding and decoding algorithms for Dandelion-like codes are presented. Namely, a unique encoding algorithm and a unique decoding algorithm, whi...

متن کامل

Parallel Algorithms for Dandelion-Like Codes

We consider the class of Dandelion-like codes, i.e., a class of bijective codes for coding labeled trees by means of strings of node labels. In the literature it is possible to find optimal sequential algorithms for codes belonging to this class, but, for the best of our knowledge, no parallel algorithm is reported. In this paper we present the first encoding and decoding parallel algorithms fo...

متن کامل

Linear-time Algorithms for Encoding Trees as Sequences of Node Labels

In this paper we present O(n)-time algorithms for encoding/decoding n-node labeled trees as sequences of n−2 node labels. All known encodings of this type are covered, including Prüfer-like codes and the three codes proposed by Picciotto the happy, blob, and dandelion codes. The algorithms for Picciotto’s codes are of special significance as previous publications describe suboptimal approaches ...

متن کامل

Parallel computing using MPI and OpenMP on self-configured platform, UMZHPC.

Parallel computing is a topic of interest for a broad scientific community since it facilitates many time-consuming algorithms in different application domains.In this paper, we introduce a novel platform for parallel computing by using MPI and OpenMP programming languages based on set of networked PCs. UMZHPC is a free Linux-based parallel computing infrastructure that has been developed to cr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001